#ifndef NETCMD_H
#define NETCMD_H

#ifdef __cplusplus
extern "C"{
#endif
       
#define DEF_MSGTYPE_CONFIRM	0x0000 
#define	DEF_MSGTYPE_REJECT	0x0001
#define	MSGID_REQUEST_LOGIN	0x00000001
#define	MSGID_RESPONSE_LOGIN	0x10000001

#define	MSGID_REQUEST_ENTERGAME	0x00000002
#define	MSGID_RESPONSE_ENTERGAME	0x10000002

#define	MSGID_REQUEST_LEAVEGAME 0x00000004
#define MSGID_RESPONSE_LEAVEGAME 0x10000004
#define	MSGID_REQUEST_NEWACCOUNT 0x00000008
#define MSGID_RESPONSE_NEWACCOUNT 0x10000008
#define	MSGID_REQUEST_NEWCHARACTER 0x00000010
#define MSGID_RESPONSE_NEWCHARACTER 0x10000010

#define	MSGID_REQUEST_GETCHARLIST 0x00000011
#define MSGID_RESPONSE_GETCHARLIST 0x10000011
#define	MSGID_REQUEST_BINDGS	0x00000111
#define	MSGID_RESPONSE_BINDGS	0x10000111
#define	MSGID_REQUEST_JOINSCENE	0x00000003
#define	MSGID_RESPONSE_JOINSCENE	0x10000003

//for gs
#define	MSGID_REQUEST_REGGS 0x01000001
#define	MSGID_RESPONSE_REGGS 0x11000001
#define	MSGID_REQUEST_DATA2GS 0x0000000F
#define	MSGID_RESPONSE_DATA2GS 0x1000000F
#define	MSGID_REQUEST_DATA2CLIENTS 0x000000FF
#define	MSGID_REQUEST_ECHO 0x000000FF
#define	MSGID_RESPONSE_ECHO 0x100000FF
//for sqlstore
#define	MSGID_REQUEST_EXECSQL 0x0000002F
#define	MSGID_RESPONSE_EXECSQL 0x1000002F
#define	MSGID_REQUEST_EXECPROC 0x0000003F
#define	MSGID_RESPONSE_EXECPROC 0x1000003F
#define	MSGID_REQUEST_QUERY 0x0000004F
#define	MSGID_RESPONSE_QUERY 0x1000004F
#define	MSGID_NOTIFY_DISCONNECT  0x11111111
#define	DEF_LOGRESMSGTYPE_PASSWORDMISMATCH  0x0001
#define	DEF_LOGRESMSGTYPE_NOTEXISTINGACCOUNT 0x0002
#define	DEF_LOGRESMSGTYPE_NOTEXISTINGCHARACTER 0x003
#define	DEF_ENTERGAMEMSGTYPE_NEW 0x0F1C
#define	DEF_ENTERGAMERESTYPE_PLAYING 0x0F20
#define	DEF_ENTERGAMERESTYPE_REJECT  0x0F21
#define	DEF_ENTERGAMERESTYPE_CONFIRM 0x0F22
#define	DEF_ENTERGAMERESTYPE_FORCEDISCONN 0x0F23

#ifdef __cplusplus
}
#endif

#endif

